From 55bd4cbcb5232afb65d9ada8bc5c93e9008e0aa0 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 10 Apr 1993 08:31:28 +0000 Subject: [PATCH] * Makefile.in (xmakefile): Recognize the -O option with a numeric optimization level. * ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or higher, use -O99 instead of plain -O. --- src/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.in b/src/Makefile.in index 2c7fad192e5..5f0afca50c3 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -75,7 +75,7 @@ xmakefile: ymakefile config.h ${CPP} ${CFLAGS} junk.c > junk.cpp \ -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ | sed -e 's/-g /C_DEBUG_SWITCH /' \ - -e 's/-O /C_OPTIMIZE_SWITCH /'`" + -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`" < junk.cpp \ sed -e 's/^#.*//' \ -e 's/^[ \f\t][ \f\t]*$$//' \ -- 2.30.2